package eu.isdc.jsphint.maven.resource.processor;

import java.io.IOException;
import java.io.Reader;

/**
 * ResourceProcessor. A processor which will be applied to the resource.
 * 
 * @author Ionut David
 * @created Created on Oct 9, 2011
 */
public interface ResourceProcessor {
	
	/**
	 * Process a content supplied by a reader and perform some sort of processing.
	 * 
	 * @param resourceUri the resource location uri.
	 * @param reader Used to read resource content.
	 * @throws IOException when IO exception occurs.
	 */
	void process(final String resourceUri, final Reader reader)
    throws IOException;
}
